home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 108 / MacAddict108.iso / Software / Internet & Communication / WordPress 1.5.1.dmg / wordpress / wp-admin / options-head.php < prev    next >
Encoding:
PHP Script  |  2004-10-19  |  518 b   |  24 lines

  1. <?php
  2.  
  3. $wpvarstoreset = array('action','standalone', 'option_group_id');
  4. for ($i=0; $i<count($wpvarstoreset); $i += 1) {
  5.     $wpvar = $wpvarstoreset[$i];
  6.     if (!isset($$wpvar)) {
  7.         if (empty($_POST["$wpvar"])) {
  8.             if (empty($_GET["$wpvar"])) {
  9.                 $$wpvar = '';
  10.             } else {
  11.                 $$wpvar = $_GET["$wpvar"];
  12.             }
  13.         } else {
  14.             $$wpvar = $_POST["$wpvar"];
  15.         }
  16.     }
  17. }
  18. ?>
  19.  
  20. <br clear="all" />
  21.  
  22. <?php if (isset($_GET['updated'])) : ?>
  23. <div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div>
  24. <?php endif; ?>